<template>
  <div>
    <div>
      <h4>关键肌评定</h4>
      <el-row type="flex" justify="space-between">
        <el-col>
            <el-button type="primary">填写《脊髓损伤关键肌评定跳转表》</el-button>
        </el-col>
        <el-col :span="6">
          <div>
            <span>关键肌总分 </span>
            <el-input v-model="pgForm.key_muscles_input1" placeholder="" readonly style="width: 30%;"></el-input>
            <span> 分</span>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>左侧 </span>
            <el-input v-model="pgForm.key_muscles_input2" placeholder="" readonly style="width: 30%;"></el-input>
            <span> 分</span>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>右侧 </span>
            <el-input v-model="pgForm.key_muscles_input3" placeholder="" readonly style="width: 30%;"></el-input>
            <span> 分</span>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>骶部运动 </span>
            <el-select v-model="pgForm.key_muscles_value" placeholder="请选择" style="width: 40%;">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "key_muscles",
  title: "关键肌评定",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data() {
    return {
      options: [{
        value: '有',
        label: '有'
      }, {
        value: '无',
        label: '无'
      }],

      pgForm: {
        key_muscles_value: '',
        key_muscles_input1: '',
        key_muscles_input2: '',
        key_muscles_input3: '',
      }
    }
  }
}
</script>

<style scoped>

.el-row {
  margin: 10px 0;
  padding: 20px 10px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin: 10px 0;
}
</style>
